import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [

  {
    title: '录入时间',
    align: "center",
    dataIndex: 'createTime',

  },
  {
    title: '推送时间',
    align: "center",
    dataIndex: 'pushTime'
  },
  {
    title: '线索编号',
    align: "center",
    dataIndex: 'recordNo'
  },
  {
    title: '线索来源',
    align: "center",
    dataIndex: 'source_dictText'
  }
  , {
    title: '城市',
    align: "center",
    dataIndex: 'city'
  },
  {
    title: '手机号',
    align: "center",
    dataIndex: 'phone',
    // fixed:'left',

  },
  {
    title: '三方平台',
    align: "center",
    dataIndex: 'tpCarConfigCode_dictText'
  },



  {
    title: "品牌",
    align: "center",
    dataIndex: "brandName"
  },


  {
    title: "车系",
    align: "center",
    dataIndex: "seriesName"
  },


  {
    title: "车型",
    align: "center",
    dataIndex: "specName"
  },


  {
    title: "上牌时间",
    align: "center",
    dataIndex: "firstRegTime"
  },


  {
    title: "里程数",
    align: "center",
    dataIndex: "mileage"
  },
  {
    title: '录入方式',
    align: "center",
    dataIndex: 'writeMode_dictText'
  },
  {
    title: '任务编号',
    align: "center",
    dataIndex: 'taskNo'
  },



 {
    title: '邀约状态',
    align: "center",
    dataIndex: 'inviteStatus_dictText'
  },
  {
    title: '邀约时间',
    align: "center",
    dataIndex: 'inviteTime'
  },
  {
    title: '渠道邀约状态',
    align: 'center',
    dataIndex: 'channelInviteStatus_dictText',
  },
  {
    title: '渠道邀约时间',
    align: 'center',
    dataIndex: 'channelInviteTime',
  },

  {
    title: '是否同步',
    align: 'center',
    dataIndex: 'izSync_dictText',
  },

  {
    title: '三方线索ID',
    align: "center",
    dataIndex: 'tpCId'
  },

  {
    title: '分发状态',
    align: "center",
    dataIndex: 'qczjDistributeStatus_dictText'
  },
  {
    title: '申诉状态',
    align: "center",
    dataIndex: 'qczjAppealStatus_dictText'
  },
  {
    title: '过滤通知',
    align: "center",
    dataIndex: 'qczjFilterateStatus_dictText'
  },
  {
    title: '质检状态',
    align: "center",
    dataIndex: 'qczjCheckStatus_dictText'
  },{
    title: '接收状态',
    align: "center",
    dataIndex: 'xlbHandleStatus_dictText'
  },

  {
    title: '入库状态',
    align: "center",
    dataIndex: 'xlbStoreStatus_dictText'
  },
  {
    title: '建单状态',
    align: "center",
    dataIndex: 'xlbBuildStatus_dictText'
  }, {
    title: '推送状态',
    align: "center",
    dataIndex: 'pushStatus_dictText'
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'remark'
  },
];
//列表数据
export const channelColumns: BasicColumn[] = [

  {
    title: '录入时间',
    align: "center",
    dataIndex: 'createTime'
  },
  {
    title: '推送时间',
    align: "center",
    dataIndex: 'pushTime'
  },
  {
    title: '线索编号',
    align: "center",
    dataIndex: 'recordNo'
  },
  {
    title: '线索来源',
    align: "center",
    dataIndex: 'source_dictText'
  } ,
  {
    title: '城市',
    align: "center",
    dataIndex: 'city'
  },
  {
    title: '手机号',
    align: "center",
    dataIndex: 'phone'
  },

  {
    title: '三方平台',
    align: "center",
    dataIndex: 'tpCarConfigCode_dictText'
  },



  {
    title: '渠道邀约状态',
    align: "center",
    dataIndex: 'channelInviteStatus_dictText'
  },
  {
    title: '渠道邀约时间',
    align: "center",
    dataIndex: 'channelInviteTime'
  },
  {
    title: '三方线索ID',
    align: "center",
    dataIndex: 'tpCId'
  },

  {
    title: "品牌",
    align: "center",
    dataIndex: "brandName"
  },


  {
    title: "车系",
    align: "center",
    dataIndex: "seriesName"
  },


  {
    title: "车型",
    align: "center",
    dataIndex: "specName"
  },


  {
    title: "上牌时间",
    align: "center",
    dataIndex: "firstRegTime"
  },


  {
    title: "里程数",
    align: "center",
    dataIndex: "mileage"
  },
  {
    title: '录入方式',
    align: "center",
    dataIndex: 'writeMode_dictText'
  },
  {
    title: '任务编号',
    align: "center",
    dataIndex: 'taskNo'
  },
  {
    title: '推送状态',
    align: "center",
    dataIndex: 'pushStatus_dictText'
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'remark'
  },




];

// 高级查询数据
export const superQuerySchema = {
  recordId: {title: '线索id',order: 0,view: 'text', type: 'string',},
  recordNo: {title: '线索编号',order: 1,view: 'text', type: 'string',},
  source: {title: '线索来源',order: 2,view: 'sel_user', type: 'string',},
  phone: {title: '手机号',order: 3,view: 'text', type: 'string',},
  city: {title: '城市',order: 4,view: 'text', type: 'string',},
  writeMode: {title: '录入方式',order: 5,view: 'list', type: 'string',dictCode: 'clue_write_mode',},
  taskNo: {title: '任务编号',order: 6,view: 'text', type: 'string',},
  tpCarConfigCode: {title: '三方平台',order: 7,view: 'list', type: 'string',dictTable: "clue_tp_car_config", dictCode: 'code', dictText: 'name',},
  tpUsername: {title: '三方用户名',order: 8,view: 'text', type: 'string',},
  tpPassword: {title: '三方密码',order: 9,view: 'text', type: 'string',},
  tpSecretKey: {title: '三方秘钥',order: 10,view: 'text', type: 'string',},
  tpCId: {title: '三方线索ID',order: 11,view: 'text', type: 'string',},
  pushStatus: {title: '推送状态',order: 12,view: 'list', type: 'string',dictCode: 'clue_task_push_status',},
  remark: {title: '备注',order: 13,view: 'text', type: 'string',},
  qczjDistributeStatus: {title: '分发状态',order: 14,view: 'list', type: 'string',dictCode: 'qczj_distribute_status',},
  qczjAppealStatus: {title: '申诉状态',order: 15,view: 'list', type: 'string',dictCode: 'qczj_appeal_status',},
  qczjFilterateStatus: {title: '过滤通知',order: 16,view: 'list', type: 'string',dictCode: 'qczj_filterate_status',},
  qczjCheckStatus: {title: '质检状态',order: 17,view: 'list', type: 'string',dictCode: 'qczj_check_status',},
  xlbHandleStatus: {title: '推送状态',order: 18,view: 'list', type: 'string',dictCode: 'xlb_clue_status',},
  xlbStoreStatus: {title: '入库状态',order: 19,view: 'list', type: 'string',dictCode: 'xlb_clue_status',},
  xlbBuildStatus: {title: '建单状态',order: 20,view: 'list', type: 'string',dictCode: 'xlb_clue_status',},
};
